How to reproduce the results reported in:

Mader, Matthias & Harald Schoen.
The European refugee crisis, party competition, and voters� responses in Germany
West European Politics

1)	Save all files in the same folder. 
2)	Open "00_Main_reproduction_file.do" with Stata (Version 15)
3)	Run the code.

You may have to change your working directory to the folder in which you saved the data sets and do-files ("cd...")
You may have to download additional Stata ados and schemes. Type "findit [unknown command/scheme]" and install.

The cleaned data sets are included in the reproduction package. The original data sets that were used---all of which are publicly available---are listed below.
Stata code to clean and merge these data sets is available upon request. 

GLES Panel data:
- 2013 Campaign panel (doi:10.4232/1.12561)
- 2015 Intermediate inquiry of Long-term Panel started in 2005,2009 and 2013 and of Short-term Campaign Panel 2013 (doi:10.4232/1.12491)
- 2017 Campaign panel (doi.org/10.4232/1.12930)

GLES Cross-sectinal data (Online Trackings)
- Long-term Online Tracking, T19 (doi:10.4232/1.12034)
- Long-term Online Tracking, T20 (doi:10.4232/1.13016)
- Long-term Online Tracking, T21 (doi:10.4232/1.12231)
- Long-term Online Tracking, T22 (doi:10.4232/1.12232)
- Long-term Online Tracking, T23 (doi:10.4232/1.12421)
- Long-term Online Tracking, T24 (doi:10.4232/1.12279)
- Long-term Online Tracking, T25 (doi:10.4232/1.12811)
- Long-term Online Tracking, T26 (doi:10.4232/1.12281)
- Long-term Online Tracking, T27 (doi:10.4232/1.12282)
- Long-term Online Tracking, T28 (doi:10.4232/1.12521)
- Long-term Online Tracking, T29 (doi:10.4232/1.12522)
- Long-term Online Tracking, T30 (doi:10.4232/1.12540)
- Long-term Online Tracking, T31 (doi:10.4232/1.12655)
- Long-term Online Tracking, T32 (doi:10.4232/1.12625)
- Long-term Online Tracking, T33 (doi:10.4232/1.12675)
- Long-term Online Tracking, T34 (doi:10.4232/1.12731)
- Long-term Online Tracking, T35 (doi:10.4232/1.12795)
- Long-term Online Tracking, T36 (doi:10.4232/1.12872)
- Long-term Online Tracking, T37 (doi:10.4232/1.12917)